package cn.kk.Blog.service.impl;
/*
 *@author KK on 2022.12.01 21:15
 */

import cn.kk.Blog.core.dao.IBaseDao;
import cn.kk.Blog.core.service.BaseServiceImpl;
import cn.kk.Blog.dao.ISystemUserDao;
import cn.kk.Blog.dao.impl.SystemUserDaoImpl;
import cn.kk.Blog.entity.TSystemUser;
import cn.kk.Blog.service.ISystemUserService;

import java.sql.SQLException;


public class SystemUserServiceImpl extends BaseServiceImpl<TSystemUser> implements ISystemUserService {
    private ISystemUserDao systemUserDao = new SystemUserDaoImpl();

    @Override
    protected IBaseDao<TSystemUser> getBaseDao() {
        return systemUserDao;
    }

    @Override
    public TSystemUser selectByName(String username) throws SQLException {
        return systemUserDao.getUserByName(username);
    }
}
